#include "decorate.h"

int main()
{
    Person* person = new Student("Jack");
    TShit* tshit = new TShit();
    BigTrouser* bt = new BigTrouser();
    Ballshoes* bs = new Ballshoes();
    tshit->decorate(person);
    bt->decorate(tshit);
    bs->decorate(bt);
    bs->show();

    Person* person1 = new Lawyer("Lily");
    Suit* suit = new Suit();
    Tie* tie = new Tie();
    LeatherShoes* ls = new LeatherShoes();
    suit->decorate(person1);
    tie->decorate(suit);
    ls->decorate(tie);
    ls->show();

    delete person;

    delete tshit;
    delete bt;
    delete bs;
    delete suit;
    delete tie;
    delete ls;
    return 0;
}